
//-------------------------------------------------------------------------------------------------------------------------
function bank()
	{
	if (location.href.indexOf(SCRIPT.name+'/bank') != -1)
		{
		var sform = document.getElementsByTagName('form')[2];
		document.getElementsByName("amount")[1].value = gold - GM_getValue('bankKeep');
		sform.submit();
		flag = 1;
		}
	else
		{
		window.location = "http://apps.facebook.com/"+SCRIPT.name+"/bank.php";
		flag = 1;
		}
	return;
	}


